<?php $this->Sgwy->addCss('/css/plan/index.css');?>
<?= $this->Sgwy->addJs('/js/plan/index.js'); ?>
    <?php echo $this->Html->script('/js/page.js');?>   
    <div class="plan">
           <div class="wav_title">
        <p>热门攻略</p>
        <img class="lazy" onclick="window.location.href='/community/index/' " src="/images/common/grey.gif" data-original="/images/mobile/fanhui.png"><span>首页</span>
        </div>       
        <div class="content">
            <div class="banner_pc"><a href="http://pht.zoosnet.net/LR/Chatpre.aspx?id=PHT13532865&lng=cn" target="_blank" style="display:block;width:100%;height:100%;"></a></div>
            <div class="top">
                <p><a href="/community/index/">首页</a> >  攻略</p>
            </div>
            <div class="main">
                <div class="tag">
                    泰国试管攻略
                    <span>主题：</span>
                    <em><?php echo $countNum;?></em>
                    <span>今日：</span>
                    <em><?php echo $newNum;?></em>
                </div>   
                <div class="explain">
                    <img class="lazy toux" src="/images/common/grey.gif" data-original="/images/plan/z1.png">
                    <div>
                        <h4>泰国试管攻略</h4>
                        <p>超强攻略大全，你想知道的这里都有!</p>
                    </div>
                </div>
                <div class="screen">
                    <div class="tab">
                        <a href="/plan/index/" class="<?php echo(empty($cid))? "r-bag":"";?>"  ><i class="pic1"></i>全部</a> 
                        <?php $j=2; foreach($cateList as $key => $value):?>
                        <a href="/plan/index/<?php echo $value["ArticleCate"]["id"].".html";?>"  class="<?php echo !empty($cid) && $value["ArticleCate"]["id"]==$cid ? "r-bag":"";?>"><i class="pic<?php echo $j;?>"></i><?=$value['ArticleCate']['name']?></a> 
                        <?php $j++;?>
                        <?php endforeach;?> 
                    </div>   
                    <div class="open"></div>  
                    <div class="close"></div>
                </div>
                <div class="cut">
                    <div class="cut_btn">
                        <a href="/plan/index/<?php echo $cid.".html";?>" class="<?php echo  empty($seletCss)? "cut_btn_add":"";?>">全部</a>
                        <a href="/plan/index/<?php echo $cid."-hot.html";?>" class="<?php echo !empty($seletCss) && $seletCss=='hot' ? "cut_btn_add":"";?>">热门</a>
                        <a href="/plan/index/<?php echo $cid."-elite.html";?>" class="<?php echo !empty($seletCss) && $seletCss=='elite' ? "cut_btn_add":"";?>">精华</a>
                        <a href="/personal/my_plan/" class="posting">发帖</a>
                    </div>
                    <?php  if(sizeof($topList) > 0){?>
                    <div class="post_list">
                        <ul>
                            <?php  foreach($topList as $key => $value):?>
                            <?php if($key<5){?>
                            <li><a href="/plan/info/<?php echo $value["Article"]["id"].".html";?>"> 
                                <?php echo $value['Article']['is_top']==1?"<i>置顶</i>":""?>
                                <p><?=$value['Article']['title']?></p>
                                <span><?=$value['Article']['create_time']?></span>
                            </a></li>
                            <?php }?>
                            <?php endforeach;?> 
                        </ul>
                    </div>
                    <?php }?>
                    <div class="patient"> 
                        <div class="new_list_b nlb1">
                        <ul>
                        <?php foreach ($topList as $key => $value):?>
                        <?php if($key>=5){?>
                        <li>
                            <a href="/plan/info/<?php echo $value["Article"]["id"].".html";?>">
                                <div class="title_top"><?=strip_tags($value['Article']['title'])?></div>
                                <div class="img_b">
                                </div>
                            </a>
                            <div class="bottam">
                                <div class="b_head"><img src="/images/temp/head.jpg"></div>
                                <div class="b_name">试管无忧</div>
                                <div class="b_time"><?php echo Ivf::formatTime($value['Article']['create_time']);?></div>
                                <div class="b_right">
                                    <div class="b_pic1"><?=$value['Article']['browse_num']?></div>
                                    <div class="b_pic2"><?=$value['Article']['comment_num']?></div>
                                    <div class="b_pic3 up <?php echo $value['Article']['myagree']>0?'add_up':'';?>" <?php if($value['Article']['myagree']==0){?>onclick="adAgree(this,<?=$value["Article"]["id"]?>,'agree_article')"<?php }?>><?=$value['Article']['agree_num']?></div>
                                </div>
                            </div>
                            </li>
                        <?php }?>
                        <?php endforeach;?>
                        </ul>
                        </div>
                        <div class="new_list_b" style="margin-top: -20px;" id="loadPage">
                        <ul>
                        <?php foreach ($dataList as $key => $value):?>
                            <li>
                              <a href="/plan/info/<?php echo $value["Article"]["id"].".html";?>">
                                <div class="title_top"><?=strip_tags($value['Article']['title'])?></div>
                                <div class="img_b">
                                    <?php foreach ($value['Article']['images'] as $k => $v):?> 
                                    <img src="<?php echo $v['Picture']['thumb'];?>"?>   
                                    <?php endforeach;?>
                                </div>
                              </a>
                                <div class="bottam">
                                    <div class="b_head"><img src="<?=$value['Article']['avatar']?>"></div>
                                    <div class="b_name"><?=$value['Article']['username']?></div>
                                    <div class="b_time"><?php echo Ivf::formatTime($value['Article']['create_time']);?></div>
                                    <div class="b_right">
                                        <div class="b_pic1"><?=$value['Article']['browse_num']?></div>
                                        <div class="b_pic2"><?=$value['Article']['comment_num']?></div>
                                        <div class="b_pic3 up <?php echo $value['Article']['myagree']>0?'add_up':'';?>" <?php if($value['Article']['myagree']==0){?> onclick="adAgree(this,<?=$value["Article"]["id"]?>,'agree_article')"<?php }?>><?=$value['Article']['agree_num']?></div>
                                    </div>
                                </div>
                            </li>
                        <?php endforeach;?>
                       </ul>
                       </div>
                        <?php if(sizeof($dataList) >= 6){?>
                        <div class="more" onclick="_page.getPlan(this,<?php echo intval($cid);?>,'<?php echo $seletCss;?>','<?php echo $seachTitle;?>')">
                            <a href="javascript:void(0)" title="" >加载更多</a>
                        </div> 
                        <?php }?>
                    </div>
                </div>
                

            </div> 
            <div class="fixed">  
                <a href="/hospital/index/"><img class="lazy " src="/images/share/guanggao_01.jpg" ></a>
                <a href="/service/vip/"><img class="lazy " src="/images/share/guanggao_02.jpg"></a>
                <div class="fixed_site">
                    <p>热门医院</p>
                    <a href="/hospital/info/9.html">全球生殖中心</a>
                    <a href="/hospital/info/2.html">杰特宁试管婴儿中心</a>
                    <a href="/hospital/info/1.html">泰国帕亚泰·是拉差</a> <br>
                    <a href="/hospital/info/4.html">泰国iBoby生殖中心</a>
                </div>
            </div>
         
        </div>
        
    </div>
    <script type="text/javascript">
 
    <?php if(sizeof($topList) == 0 && sizeof($dataList) == 0 && !empty($seachTitle)){?>
            layer.msg("您搜索的攻略不存在",{icon:5,time:1000});  
    <?php }?> 
    </script>

